package com.agriculture.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 收藏
 */
@Data
public class Star implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    // 谁收藏的
    private Long userId;

    // 收藏了啥
    private Long goodId;


    // 啥时候更新的
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
